package com.un10.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.un10.entity.Eventcommodity;
import com.un10.mapper.EventcommodityMapper;
import com.un10.service.EventcommodityService;

@Service
public class EventcommodityServiceImpl implements EventcommodityService {
	@Autowired
	private EventcommodityMapper eventcommodityMapper;

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return eventcommodityMapper.getCount();
	}

	@Override
	public List<Eventcommodity> findAllEventcommodity(int page, int limit, String proName) {
		// TODO Auto-generated method stub
		return eventcommodityMapper.getAllEventcommodity(page, limit, proName);
	}

	@Override
	public Integer findEventcommodityAdd(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return eventcommodityMapper.EventcommodityAdd(map);
	}

	@Override
	public Integer findEventcommodityUpdate(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return eventcommodityMapper.EventcommodityUpdate(map);
	}

	@Override
	public Integer findEventcommodityDelete(int evID) {
		// TODO Auto-generated method stub
		return eventcommodityMapper.EventcommodityDelete(evID);
	}
}
